//
// Created by mac on 1/28/22.
//
#include <vector>
using namespace std;
bool checkStraightLine(vector<vector<int>>& coordinates) {
    int x1 = coordinates[0][0];
    int y1 = coordinates[0][1];
    int x = coordinates[1][0] - x1;
    int y = coordinates[1][1] - y1;

    for (int i = 2; i < coordinates.size(); ++i) {
        int xi = coordinates[i][0]-x1;
        int yi = coordinates[i][1]-y1;

        if(xi*y-yi*x){ return false;}
    }
    return true;
}